package com.qfedu.zf.index.controller;


import com.qfedu.zf.common.vo.R;
import com.qfedu.zf.index.service.AmenitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 存储房源的设施信息 前端控制器
 * </p>
 *
 * @author wgz
 * @since 2024-06-19
 */
@RestController
@RequestMapping("/index/amenities")
public class AmenitiesController {

    @Autowired
    AmenitiesService amenitiesService;

    @RequestMapping("/listByListingId")
    public R listByListingId(@RequestParam Map<String, Object> map) {
        return amenitiesService.listByListingId(map);
    }

}

